package com.accompany.service.impl;

import com.accompany.model.User;
import com.accompany.dao.UserMapper;
import com.accompany.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author lfs
 * @since 2023-03-08
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper mapper;

    @Override
    public User getUserByPhone(String phone) {
        return mapper.selectUserByPhone(phone);
    }
}
